﻿[
		define_tag(
			'valError',
			-nameSpace	= 'er_',
			-required	= 'error',
			-priority	= 'replace',
			-required   = 'type',
			-optional   = 'styleclass');
			
			!local_defined('styleclass') ? local('styleclass' = 'error_msg');

			local(
				'result'		= string,
				'error_msgs' 	= xml_tree(file_read($er_dir + '/_app/_common/error_lib.xml'))
			);
			
			var('form_error' = true);		

				#result =
					'<span class="' + #styleclass + '">'+
						#error_msgs->getnode(#type)->getnode(#error)->contents +
					'</span>';

			return(#result);

		/define_tag;


]